import request from "@/utils/request";
//查询首页所有信息
export function HomeSearch(params) {
    return request({
        url: "/InformationStatistics",
        method: "GET",
        params
    });
}

//查询首页余额
// export function getMemberAccount(params) {
//     return request({
//         url: "/member/getMemberAccount",
//         method: "POST",
//         params
//     });
// }

export function SearchSotreCategory() {
    //查询分类名称
    return request({
        url: "/crmStoreCategory/selStoreCategory",
        method: "GET",
    });
}
export function SearchBrands() {
    //查询品牌名称
    return request({
        url: "/crmBrands/selBrands",
        method: "GET",
    });
}
export function SearchBusiness() {
    //查询商家名称
    return request({
        url: "/crmBusiness/selBusiness",
        method: "GET",
    });
}

export function SH(params) {
    //通过
    return request({
        url: "/crmStoreProduct/auditStatusModification",
        method: "POST",
        params,
    });
}
export function SJ(params) {
    //上架
    return request({
        url: "/crmStoreProduct/putShelfGrounding",
        method: "POST",
        params,
    });
}
export function XJ(params) {
    //下架
    return request({
        url: "/crmStoreProduct/undercarriage",
        method: "POST",
        params,
    });
}
export function CXSH(params) {
    //重新申请审核
    return request({
        url: "/crmStoreProduct/applicationSubmission",
        method: "POST",
        params,
    });
}
export function BH(params) {
    //驳回
    return request({
        url: "/crmStoreProduct/reviewRejected",
        method: "POST",
        params,
    });
}
export function CWSH(params) {
    //线下支付财务审核
    return request({
        url: "/offlinePayLogManage/accountingAudit",
        method: "POST",
        params,
    });
}
export function GLYSH(params) {
    //线下支付管理员审核
    return request({
        url: "/offlinePayLogManage/administratorAudit",
        method: "POST",
        params,
    });
}
export function SsearchUserID(params) {
    //根据管理员ID查询所有角色
    return request({
        url: "/sysUserRole/getUserRolePermission",
        method: "post",
        params,
    });
}
export function UpdateUserID(params) {
    //修改用户角色
    return request({
        url: "/sysUserRole/updateUserPermission",
        method: "post",
        params,
    });
}
export function SsearchMenu(params) {
    //根据角色roleKey查询所有菜单
    return request({
        url: "/sysRoleManage/selectAllMenuByRoleKey",
        method: "post",
        params,
    });
}
export function UpdateMenu(params) {
    //根据角色roleKey查询所有菜单
    return request({
        url: "/sysRoleManage/updateRolePermission",
        method: "post",
        params,
    });
}
export function CWTKsh(params) {
    //财务退款审核
    return request({
        url: "/crmOrderRefunds/updFinanceExamine",
        method: "post",
        params,
    });
}
export function GLYTKsh(params) {
    //管理员退款审核
    return request({
        url: "/crmOrderRefunds/updAdministrationExamine",
        method: "post",
        params,
    });
}
export function QRTK(params) {
    //确认退款
    return request({
        url: "/crmOrderRefunds/confirmRefund",
        method: "post",
        params,
    });
}
export function updateIsShow(params) {
    //商城上下架
    return request({
        url: "/updateIsShow",
        method: "POST",
        params,
    });
}